﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace XJay.Identity.Common.CustomException
{
    public class XJayException : ApplicationException
    {
        //
        // 摘要:
        //     Initializes a new instance of the System.ApplicationException class.
        public XJayException():base()
        {

        }
        //
        // 摘要:
        //     Initializes a new instance of the System.ApplicationException class with a specified
        //     error message.
        //
        // 参数:
        //   message:
        //     A message that describes the error.
        public XJayException(string? message) : base(message)
        {
            
        }
        //
        // 摘要:
        //     Initializes a new instance of the System.ApplicationException class with a specified
        //     error message and a reference to the inner exception that is the cause of this
        //     exception.
        //
        // 参数:
        //   message:
        //     The error message that explains the reason for the exception.
        //
        //   innerException:
        //     The exception that is the cause of the current exception. If the innerException
        //     parameter is not a null reference, the current exception is raised in a catch
        //     block that handles the inner exception.
        public XJayException(string? message, Exception? innerException) : base(message, innerException)
        {

        }
        //
        // 摘要:
        //     Initializes a new instance of the System.ApplicationException class with serialized
        //     data.
        //
        // 参数:
        //   info:
        //     The object that holds the serialized object data.
        //
        //   context:
        //     The contextual information about the source or destination.
        protected XJayException(SerializationInfo info, StreamingContext context) : base(info, context)
        {

        }
    }
}
